package com.neusoft.demo.po;

import java.math.BigInteger;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Order {

	private Integer orderId;
	private BigInteger orderCode;
	private Integer Uid;
	private Integer goodsId;
	private float realityPrice;
	private Integer status;
	private Boolean visible;
	@JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ss")
	private Date createTime;
	private Boolean refund;
	private Integer expressNumber;
	@JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ss")
	private Date takeDeliveryTime;
	@JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ss")
	private Date deliveryTime;
	private Boolean takeDelivery;
    private List<Goods> goods;
	@JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ss")
    private Date beginTime;
	@JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ss")
    private Date endTime;

	
	public Order() {
		super();
		// TODO Auto-generated constructor stub
	}


	public Order(Integer orderId, BigInteger orderCode, Integer uid, Integer goodsId, float realityPrice,
			Integer status, Boolean visible, Date createTime, Boolean refund, Integer expressNumber,
			Date takeDeliveryTime, Date deliveryTime, Boolean takeDelivery, List<Goods> goods, Date beginTime,
			Date endTime) {
		super();
		this.orderId = orderId;
		this.orderCode = orderCode;
		Uid = uid;
		this.goodsId = goodsId;
		this.realityPrice = realityPrice;
		this.status = status;
		this.visible = visible;
		this.createTime = createTime;
		this.refund = refund;
		this.expressNumber = expressNumber;
		this.takeDeliveryTime = takeDeliveryTime;
		this.deliveryTime = deliveryTime;
		this.takeDelivery = takeDelivery;
		this.goods = goods;
		this.beginTime = beginTime;
		this.endTime = endTime;
	}


	public Integer getOrderId() {
		return orderId;
	}


	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}


	public BigInteger getOrderCode() {
		return orderCode;
	}


	public void setOrderCode(BigInteger orderCode) {
		this.orderCode = orderCode;
	}


	public Integer getUid() {
		return Uid;
	}


	public void setUid(Integer uid) {
		Uid = uid;
	}


	public Integer getGoodsId() {
		return goodsId;
	}


	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}


	public float getRealityPrice() {
		return realityPrice;
	}


	public void setRealityPrice(float realityPrice) {
		this.realityPrice = realityPrice;
	}


	public Integer getStatus() {
		return status;
	}


	public void setStatus(Integer status) {
		this.status = status;
	}


	public Boolean getVisible() {
		return visible;
	}


	public void setVisible(Boolean visible) {
		this.visible = visible;
	}


	public Date getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	public Boolean getRefund() {
		return refund;
	}


	public void setRefund(Boolean refund) {
		this.refund = refund;
	}


	public Integer getExpressNumber() {
		return expressNumber;
	}


	public void setExpressNumber(Integer expressNumber) {
		this.expressNumber = expressNumber;
	}


	public Date getTakeDeliveryTime() {
		return takeDeliveryTime;
	}


	public void setTakeDeliveryTime(Date takeDeliveryTime) {
		this.takeDeliveryTime = takeDeliveryTime;
	}


	public Date getDeliveryTime() {
		return deliveryTime;
	}


	public void setDeliveryTime(Date deliveryTime) {
		this.deliveryTime = deliveryTime;
	}


	public Boolean getTakeDelivery() {
		return takeDelivery;
	}


	public void setTakeDelivery(Boolean takeDelivery) {
		this.takeDelivery = takeDelivery;
	}


	public List<Goods> getGoods() {
		return goods;
	}


	public void setGoods(List<Goods> goods) {
		this.goods = goods;
	}


	public Date getBeginTime() {
		return beginTime;
	}


	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}


	public Date getEndTime() {
		return endTime;
	}


	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}


	@Override
	public String toString() {
		return "Order [orderId=" + orderId + ", orderCode=" + orderCode + ", Uid=" + Uid + ", goodsId=" + goodsId
				+ ", realityPrice=" + realityPrice + ", status=" + status + ", visible=" + visible + ", createTime="
				+ createTime + ", refund=" + refund + ", expressNumber=" + expressNumber + ", takeDeliveryTime="
				+ takeDeliveryTime + ", deliveryTime=" + deliveryTime + ", takeDelivery=" + takeDelivery + ", goods="
				+ goods + ", beginTime=" + beginTime + ", endTime=" + endTime + "]";
	}
	
}